package com.example.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
import java.util.List;

/**
 * 商品类
 */
@TableName("user_info")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class UserInfo {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    private String image;
    private String neiron;
    private String money;
    private String jiesao;
    private int shuliang;
    private LocalDateTime createTime;
    //    轮播图
    @TableField(exist = false)
    private List<UserInfo> slideshow;
    //    详情介绍
    @TableField(exist = false)
    private List<UserInfo> details;

    private String headType;
}
